﻿@model EagleProject.Models.UserLoginModel

@{
    ViewBag.Title = "Login";
}


@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                <table>
                    <tr>
                        <td width="30%">@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })</td>
                        <td width="10%">@Html.CheckBoxFor(m => m.RememberMe)</td>
                        <td width="60%"></td>
                    </tr>
                </table>
            </li>
            <li>
                <input class="btn" type="submit" value="Log in" />
            </li>
        </ol>
        
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
    
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
}